<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div:nth-of-type(1){
            width:100px;
            height:100px;
            background:Red;
        }
        div:nth-of-type(1):hover{
            border-radius:50%;
            transition:all 1s;
        }
        @keyframes a1{
            100%{
                height:200px;
                border-radius:50%;
            }
        }
        div:nth-of-type(2){
            width:100px;
            height:100px;
            background:Red;
        }
        div:nth-of-type(2):hover{
            animation:a1 1s;
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>
    <script>
        var oDIV = document.querySelectorAll("div");
        var flag = true;
        // oDIV.addEventListener("webkitTransitionEnd",function(){
        //     // if(flag){
        //     //     console.log("过渡结束");
        //     // }
        //     // flag = false;
        //     console.log("过渡结束");
        // },false);
        // oDIV.addEventListener("transitionEnd",function(){
        //     console.log("火狐过渡结束");
        // },false);

        // oDIV.addEventListener("webkitAnimationEnd",function(){
        //     console.log("animation结束");
        // },false);
        oDIV[1].addEventListener("webkitAnimationEnd",function(){
            console.log("animation结束");
        },false);
        oDIV[1].addEventListener("animationEnd",function(){
            console.log("animation结束");
        },false);
    </script>
</body>
</html>
